<%--
    Document   : contactUs
    Created on : May 15, 2012, 6:42:11 PM
    Author     : Long Nguyen
--%>

<%@page import="java.util.Collections"%>
<%@page import="java.util.Set"%>
<%@page import="java.util.HashSet"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.myapp.c0910g.entity.UserRadioCab"%>
<%@page import="java.util.List"%>
<%@page import="com.myapp.c0910g.DAO.UserRadioCabDAO"%>
<%@page import="com.myapp.c0910g.Utility.Constant"%>
<%@page import="com.myapp.c0910g.DTO.UserRadioDTO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr" lang="en-US">
    <head>
        <meta charset="UTF-8" />
        <title>Radio Cabs</title>
        <link rel="stylesheet" href="../resources/css/screen.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../resources/css/layout_1.css" type="text/css" media="screen" />
        <script type='text/javascript' src='../resources/script/jquery.js'></script>
        <script type='text/javascript' src='../resources/script/hoverIntent.js'></script>
        <script type='text/javascript' src='../resources/script/superfish.js'></script>
        <script type='text/javascript' src='../resources/script/jquery.scrollto.js'></script>
        <script type='text/javascript' src='../resources/script/supersubs.js'></script>
        <script type='text/javascript' src='../resources/script/jquery.cycle.all.min.js'></script>
        <script type='text/javascript' src='../resources/script/jquery.validate.min.js'></script>
        <script type='text/javascript' src='../resources/script/jquery.appear-1.1.1.min.js'></script>
        <script type='text/javascript' src='../resources/script/jquery-ui-1.8.min.js'></script>
        <script type='text/javascript' src='../resources/script/default1.js'></script>
        <script type='text/javascript' src='../resources/script/listingsearch.js'></script>
        <link href="../resources/css/grey.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href=""/>
        <script src="../resources/script/jquery.spritely-0.6.js" type="text/javascript"></script>
        <script type="text/javascript">
            jQuery.noConflict();
        </script>
    </head>
    <%
                UserRadioDTO userDTO = (UserRadioDTO) session.getAttribute(Constant.DATAINFOR);
                UserRadioCabDAO userDAO = new UserRadioCabDAO();
                List<UserRadioCab> list = userDAO.findAllListing();
                List<String> stringCity = new ArrayList<String>();
                for (int i = 0; i < list.size(); i++) {
                    stringCity.add(list.get(i).getURCCity());
                    System.out.println(list.get(i).getURCCity());
                    System.out.println(list.size());
                }
                Set<String> hs = new HashSet<String>(stringCity);
                stringCity.clear();
                stringCity.addAll(hs);
                Collections.sort(stringCity);
    %>
    <body class="page page-id-12 page-template page-template-contact-map-php">
        <a name="top" id="top"></a>
        <div class="scroll-menu mobile-hide" >
            <div>
                <a href="#top" class="scroll">Top</a>
            </div>
        </div>
        <div id="nav-wrap">
            <div id="nav-container">
                <div id="logo">
                    <a>
                        <img src="../resources/image/tic_web_logo1.png" border="0" />
                    </a></div>
                <ul id="nav" class="sf-menu sf-navbar" style="margin-right:150px;">
                    <li id="menu-item-179" class="a1i0s0 menu-item menu-item-type-custom menu-item-object-custom menu-item-179" ><a href="home.jsp">Home</a></li>
                    <li id="menu-item-260" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-260"><a href="#">Services</a>
                        <ul class="sub-menu" style="margin-left:600px;">
                            <li id="menu-item-263" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-263"><a href="listingsearch.jsp">Listing<br /><em>List company</em></a>
                            </li>
                            <li id="menu-item-262" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-262"><a href="driversearch.jsp">Driver<br /><em>List Driver</em></a>
                            </li>
                            <li id="menu-item-264" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-264"><a href="register.jsp#submit">Advertise<br /><em>Post advertise</em></a>
                            </li>
                        </ul>
                    </li>
                    <li id="menu-item-186" class="a1i0s0 menu-item menu-item-type-custom menu-item-object-custom menu-item-186"><a href="feedback.jsp">Feedback</a></li>
                    <li id="menu-item-186" class="a1i0s0 menu-item menu-item-type-custom menu-item-object-custom menu-item-186"><a href="contactUs.jsp">Contact</a></li>
                </ul>
            </div>
        </div><!-- nav-wrap -->
        <%if (userDTO != null) {%>
        <div id="logoutDiv" style="margin-top: -1px;margin-left: 900px;">
            <span style="font-size:14px;">Welcome <%=userDTO.getuRadioName()%> to RadioCabs</span>
            <span><button id="btnLogout">Logout</button></span>
        </div>
        <%} else {%>
        <div id="loginDiv" style="margin-top: -1px;margin-left: 600px;position: absolute;">
            <span style="font-size:14px;">
                <select style="width:120px !important; height: 25px !important;" id="listUserType">
                    <option value="Listing">Listing</option>
                    <option value="Driver">Driver</option>
                    <option value="Advertise">Advertise</option>
                    <option value="Admin">Admin</option>
                </select>
            </span>
            <span style="font-size:14px;color:#6D6C6A">Username: <input type="text" id="txtUser" style="width:130px;"></span>
            <span style="font-size:14px;color:#6D6C6A" id="lbPass">Password: <input type="password" id="txtPass" style="width:130px;"></span>
            <span><button id="btnLogin">Login</button></span>
        </div>
        <%}%>
        <div id="nav-wrap2">
            <div id="nav-container2">
                <form class="topsearch">
                    <ul>
                        <li>
                            <input type="text" name="s" value="Find it fast!" onblur="if(this.value=='')this.value='Find it fast!';" onfocus="if(this.value=='Find it fast!')this.value=''" />
                            <input type="submit" name="submit" value=" " class="btn_search" />
                        </li>
                    </ul>
                </form>
            </div>
        </div>
        <div id="header-wrap">
        </div><!-- header-wrap -->
        <div id="page-wrap">
            <div id="page-container" class="contact">
                <ul id="breadcrumb"><li><a href="home.jsp">Home</a> &gt;</li><li><span class="current">Company Search</span></li></ul>
                <h1 class="homeh1">Company Search</h1>
            </div>

            <div id="white-wrap">
                <div id="white-wrap-container">
                    <div class="iwacontact">
                        <select name="how_did_we_do" id="searchCompany" class="" style="z-index: 10;margin-left:140px;">
                            <%for (String str : stringCity) {%>
                            <option value="<%=str%>"><%=str%></option>
                            <%}%>
                        </select>
                        <div class="div-submit" style="top:275px;width:100px;margin-right:380px;">
                            <button class="ajax-submit" id="btnSearchCompany">
                                <span>Search</span>
                            </button>
                        </div>
                    </div>
                </div>
                <div id="white-wrap-container" class="white-swap1">
                </div>
            </div>
        </div>
        <div id="tableDiv">
        </div>
        <div id="foot-wrap">
            <div id="floating-footer-container">
                <div id="floating-footer" class="generic locked"></div>
            </div>
            <div id="foot-container">
                <div id="foot-container-inner">
                    <div class="col-220">
                        <p class="col-220-title">Contact The Radio Cabs</p>
                        <div class="textwidget">
                            <p>The Radio Cabs
                                <br>1A Yet Kieu, Hoan Kiem, Ha Noi
                                <br>Phone: 0845 535 3355
                                <br>Email: radiocabs.in</p>
                        </div>
                    </div>
                    <div class="col-220">
                        <p class="col-220-title">Services</p>
                        <!-- Begin Twitter Feed Area  -->
                        <div class="twitterfeed">
                            <div id="widget-tweets"></div>
                        </div>
                        <div class="widget-more"><a href="listingsearch.jsp" title="Click to view Services" id="widget-more-tweets">Search company</a></div><div class="clear"></div>
                        <div class="widget-more"><a href="driversearch.jsp" title="Click to view Services" id="widget-more-tweets">Search driver</a></div><div class="clear"></div>
                        <!-- End Twitter Feed Area  -->
                    </div>
                    <div class="col-220">

                        <p class="col-220-title">Feedback</p>		<ul>
                            <li><a href="feedback.jsp" title="feedback">Send feedback</a></li>
                        </ul>
                    </div>
                    <div class="col-220 omega">
                        <p class="col-220-title">Connect with us</p>
                        <p>
                            <span>Follow us on</span> <a href="#">Facebook</a><br />
                            <span>Connect with us on</span> <a href="#">Linked In</a></p>
                    </div>

                    <div class="copy">
                        <h4>You seem to have bottomed out!  <a href="#top" class="scroll">Click here to head back up</a> or <a href="#">here to get in touch<a/></a>.  </h4>
                    </div>
                    <div style="clear:both;">&nbsp;</div>
                </div> <!-- foot-container-inner -->
            </div><!-- foot-wrap -->
        </div><!-- foot-container -->
        <!-- page-wrap -->
        <script type="text/javascript" src="../resources/script/floating-footer.js"></script>
    </body>
</html>

